package com.thuan.db;

import java.util.Date;
import java.util.List;

import pojo.Competition;
import pojo.League;
import pojo.Reward;
import pojo.UserAccount;


public interface ILeagueDAO {
	List<League> listLeagues();
	int addLeague(String name, Date startDate, Date endDate, int rewardId);
	Competition findCompetition(UserAccount playerA, UserAccount playerB);
	int addCompetition(int leagueId, String usernamePlayerA, String usernamePlayerB, String usernameWinner);
	List<UserAccount> getWinners(League league);
	League findLeague(String name);
	List<Reward> listRewards();
}
